package cocoaas3.Titanium.UI{	
	import jp.progression.casts.*;import jp.progression.commands.display.*;import jp.progression.commands.lists.*;import jp.progression.commands.managers.*;import jp.progression.commands.media.*;import jp.progression.commands.net.*;import jp.progression.commands.tweens.*;import jp.progression.commands.*;import jp.progression.data.*;import jp.progression.events.*;import jp.progression.loader.*;import jp.progression.*;import jp.nium.core.debug.Logger;import jp.nium.utils.*;import caurina.transitions.Tweener;import caurina.transitions.properties.*;

	import flash.display.*;
	import flash.net.*;
	import flash.geom.*;
	import flash.events.*;
	import flash.media.*;

	public class Toolbar extends Sprite{

		[Embed(source="../../assets.swf", symbol='Toolbar_design')]
		private var Toolbar_design:Class;

		private var design = new Toolbar_design();

		private var _items:Vector.<DisplayObject>;

		public function Toolbar( items:Vector.<DisplayObject> ){
			_items = items;
			addChild( design );

			var prevItem:DisplayObject;
			for( var i:uint=0; i<items.length; i++ ){
				var _item:DisplayObject = items[i]
				if( prevItem ){
					_item.x = prevItem.x + prevItem.width;
				} else {
					_item.x = 0;
				}
				addChild( _item );
				prevItem = _item;
			}
		}

	}
}



